<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<link rel="stylesheet" href="http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Public/css/inc.css" />
	<link rel="stylesheet" href="http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Public/css/ico.css" />
	<!--[if IE 7]>
		<link rel="stylesheet" href="http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Public/css/ico-ie7.css">
	<![endif]-->
	<script type='text/javascript' src='http://localhost/obj/movier/HDPHP/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>

	<script type="text/javascript" src='http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Public/js/extend.js'></script>
	<script type="text/javascript" src='http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Link/js/js.js'></script>

	<title>友链列表</title>
</head>



<body class="bgwhite-1">
	<div class="Menu">
		<a href="<?php echo U('index');?>" class="act"><i class="icon-link mr3 gray"></i>友链管理</a>
		<a href="<?php echo U('add');?>" class="_add"><i class="icon-plus mr3 gray"></i>添加友链</a>
		<a href="<?php echo U('updateCache');?>" class="ajax" actUrl="<?php echo U('index');?>"><i class="icon-refresh mr3 gray"></i>更新缓存</a>
	</div>
	<div class="p10">
		<table class="table">
			<tr class=' white fm f14'>
				<th class="pct5 tc">lid</th>
				<th class="pct25">友链名称</th>
				<th class="">链接地址</th>
				<th class="pct20 tc">操作</th>
			</tr>
			<?php if(is_array($link)):?><?php  foreach($link as $l){ ?>
				<tr>
					<td class='tc'><span class="b gray2"><?php echo $l['lid'];?></span></td>
					<td class=''><span class="ainput" _name="name" lid="<?php echo $l['lid'];?>" post="<?php echo U('_ajax');?>"><?php echo $l['name'];?></span></td>
					<td class='f14 fv'><span class="ainput" _name="url" lid="<?php echo $l['lid'];?>" post="<?php echo U('_ajax');?>"><?php echo $l['url'];?></span></td>
					<td class='tc'>
						<a href="<?php echo U('del');?>" lid="<?php echo $l['lid'];?>" class="a bgwhite _dels red bdd p5 mr5"><i class="icon-trash icon-border mr3 icon-large"></i>删除</a>
					</td>
				</tr>
			<?php }?><?php endif;?>
		</table>
		<div class="p10 page mt10"><?php echo $page;?></div>
	</div>



	<div id="add" class="dn">
		<form action="<?php echo U('add');?>" method="post" enctype="multipart/form-data">
			<table class="table form">
				<th colspan="2">添加链接</th>
				<tr class='fm f14 bgwhite'>
					<td class="tr f14 fm pct20"><span class="pr10">友链标题</span></td>
					<td><input class="pct80" type="text" name="name"  /></td>
				</tr>
				<tr class='fm f14 bgwhite'>
					<td class="tr f14 fm pct20"><span class="pr10">跳转地址</span></td>
					<td><input class="pct90" type="text" name="url" value="http://"  /></td>
				</tr>
			</table>
			<div class="mt10 tc fm"><input type="submit" class="btn bgblack f20" value='确定操作' /></div>
		</form>
	</div>







<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?>	</body>
</html>
